package com.tuniu.agents.impl.trip.logger;

import com.tuniu.agents.impl.trip.enums.PlannerEnum;
import com.tuniu.agents.message.AgentLogger;
import com.tuniu.agents.util.I18nUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Planner outputs intelligent analysis content
 */
@Service(PlannerLoggingService.BEAN_NAME)
@Slf4j
public class PlannerLoggingService implements AgentLogger {

    public static final String BEAN_NAME = "PlannerLoggingService";

    @Override
    public List<String> before(String conversationId, Object messages) {
        return List.of(I18nUtil.getMessage(conversationId, PlannerEnum.PLANNER.getMessageKey()));
    }

    @Override
    public List<String> after(String conversationId, Object messages, Object result) {
        return null;
    }

}
